package com.njitt.bysj.mapper;

import com.njitt.bysj.base.BaseMapper;
import com.njitt.bysj.bean.PermissionBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface PermissionBeanMapper extends BaseMapper<PermissionBean, Integer> {

    List<Map<String, Object>> queryAllMenu();

    List<Map<String, Object>> queryOperations(@Param("rolesType") List<String> rolesType);

    List<String> queryMidMenu();

    List<PermissionBean> queryAllModule();

    PermissionBean queryModuleByGradeAndModuleName(Integer isType, String title);

    PermissionBean queryModulesByGradeAndUrl(Integer isType, String href);

    Integer queryByPid(Integer id);
}